package com.itfenghuang;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.util.Scanner;

public class A02_增 {
    public static void main(String[] args) throws Exception {

        //加载驱动
        Class.forName("com.mysql.jdbc.Driver");
        Connection coon = DriverManager.getConnection
                ("jdbc:mysql://127.0.0.1:3306/aa_chun_day02", "root", "123456");
        String sql="alter table student1 rename student";
        PreparedStatement pr = coon.prepareStatement(sql);
        int i = pr.executeUpdate();
    }
}
